package com.movitech.mobile.cz.base.supplier.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.movitech.mobile.cz.base.common.util.excel.annotation.ExcelField;
import com.movitech.mobile.cz.base.modules.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 * <p>
 * 供方评估
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-02-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("s_evaluation")
@ApiModel
public class SEvaluation extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;
    /**
     * 评估类型（1：过程平台，2：后评估）
     */
    @ApiModelProperty(value = "评估类型（1：过程平台，2：后评估）")
    @TableField("evaluation_type")
    private Integer evaluationType;
    /**
     * 评估子类型（评估阶段 1：年中评估，2：年末评估，3：后评估）
     */
    @ApiModelProperty(value = "评估子类型（评估阶段 1：年中评估，2：年末评估，3：后评估）")
    @TableField("evaluation_sub_type")
    private Integer evaluationSubType;
    /**
     * 评估模板id
     */
    @ApiModelProperty(value = "评估模板id")
    @TableField("evaluation_template_id")
    private String evaluationTemplateId;
    /**
     * 供方分类
     */
    @ApiModelProperty(value = "供方分类")
    @TableField("supplier_category_ids")
    private String supplierCategoryIds;
    /**
     * 合同id
     */
    @ApiModelProperty(value = "合同id")
    @TableField("contract_id")
    private String contractId;
    /**
     * 合同名称
     */
    @ApiModelProperty(value = "合同名称")
    @TableField("contract_name")
    @ExcelField(title = "合同名称",sort = 1)
    private String contractName;
    /**
     * 供方id
     */
    @ApiModelProperty(value = "供方id")
    @TableField("supplier_id")
    private String supplierId;
    /**
     * 状态：
1.待评估
2.评估中
3.待审批
4.审批中
5.审批驳回
6.已跳过
7.已评估
     */
    @ApiModelProperty(value = "状态：1.待评估 2.评估中 3.待审批 4.审批中 5.审批驳回 6.已跳过 7.已评估")
    @TableField("evaluation_status")
    private Integer evaluationStatus;
    /**
     * 地区公司ids
     */
    @ApiModelProperty(value = "地区公司ids")
    @TableField("regional_company_ids")
    private String regionalCompanyIds;
    /**
     * 项目公司id
     */
    @ApiModelProperty(value = "项目公司id")
    @TableField("project_ids")
    private String projectIds;
    /**
     * 评估年度
     */
    @ApiModelProperty(value = "评估年度")
    @TableField("evaluation_year")
    @ExcelField(title = "评估年度",sort = 5)
    private Integer evaluationYear;
    /**
     * 经办人id
     */
    @ApiModelProperty(value = "经办人id")
    @TableField("handle_user_id")
    private String handleUserId;
    /**
     * 评估开始时间
     */
    @ApiModelProperty(value = "评估开始时间")
    @TableField("evaluation_start_time")
    private Date evaluationStartTime;
    /**
     * 评估截止时间
     */
    @ApiModelProperty(value = "评估截止时间")
    @TableField("evaluation_end_time")
    private Date evaluationEndTime;
    /**
     * 评估时间
     */
    @ApiModelProperty(value = "评估时间")
    @TableField("evaluation_time")
    private Date evaluationTime;
    /**
     * 评估说明
     */
    @ApiModelProperty(value = "评估说明")
    @TableField("evaluation_desc")
    private String evaluationDesc;
    /**
     * 评估得分
     */
    @ApiModelProperty(value = "评估得分")
    @TableField("evaluation_score")
    @ExcelField(title = "评估得分",sort = 7)
    private Double evaluationScore;

    @ApiModelProperty(value = "初始得分")
    @TableField("init_evaluation_score")
    private Double initEvaluationScore;

    @ApiModelProperty(value = "改进标识(0:否 1是)")
    @TableField("improve_flag")
    private Integer improveFlag;


}
